package com.david.appletree

import androidx.annotation.MainThread
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import java.security.acl.Owner

class MyViewModelProvider(owner: ViewModelStoreOwner): ViewModelProvider(owner) {
    private var myOwner = owner
    @MainThread
    fun <T : ViewModel?> put(viewModel:T): T {
//        myOwner.viewModelStore.get
        return viewModel
    }
}